package com.yufubao.service.mapper.management.authorization;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yufubao.model.pojo.management.authorization.MenuEntity;
import com.yufubao.model.vo.management.authorization.MenuVo;
import com.yufubao.model.vo.management.sys.MenuTreeSelectVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 菜单权限表
 * 
 * @author zhangzhan
 * @email 52194440@qq.com
 * @date 2024-09-04 15:00:26
 */
@Mapper
public interface MenuDao extends BaseMapper<MenuEntity> {

    List<String> selectPermsByManagerId(@Param("managerId") Long managerId);

    List<MenuVo> selectAllRouterMenu();


    List<MenuVo> selectRouterMenuTreeByUserId(@Param("managerId") Long managerId);

    List<MenuTreeSelectVO> treeselect();

    List<MenuTreeSelectVO> roleMenuTreeselect();

    List<Long> checkedKeys(@Param("id") Long id);
}
